from pydantic import BaseModel, Field


class AddV2rayUsers(BaseModel):
    name: str = Field("name", description="用户名")


# v2ray 用户模型
class V2rayUsers(AddV2rayUsers):
    user_id: str = Field("user_id", description="用户id")
    is_main: int = Field("is_main", description="是否位主用户")

    class Config:
        from_orm = True
        from_attributes = True
